namespace KDS.Mes.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class updateline : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.T_BasicLine", "ModeId", c => c.Int(nullable: false));
            CreateIndex("dbo.T_BasicLine", "ModeId");
            AddForeignKey("dbo.T_BasicLine", "ModeId", "dbo.T_PlanMode", "Id", cascadeDelete: true);
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.T_BasicLine", "ModeId", "dbo.T_PlanMode");
            DropIndex("dbo.T_BasicLine", new[] { "ModeId" });
            DropColumn("dbo.T_BasicLine", "ModeId");
        }
    }
}
